package com.bonc.cq.cloud.feign;

import com.alibaba.fastjson.JSONObject;
import com.bonc.cq.cloud.fallback.InstanceFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value = "provider-server", fallback = InstanceFeignHystrix.class)
public interface InstanceFeignClient {
  @GetMapping (value = "/instance/getInstance/{serviceId}")
  public JSONObject getInstance(@PathVariable("serviceId") String serviceId);

}
